package com.zx.idc.backend.gui.tlog;


import com.baomidou.mybatisplus.plugins.Page;
import com.zx.idc.backend.gui.common.BasicBaseApi;
import com.zx.idc.backend.gui.common.Result;
import com.zx.idc.ds.tlog.entity.TLogSystem;
import com.zx.idc.ds.tlog.service.ITLogSystemService;
import com.zx.idc.ds.tlog.vo.TLogSystemVo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统日志 前端控制器
 * </p>
 *
 * @author 陈冬
 * @since 2019-04-09
 */
@RestController
@RequestMapping("/api/tlogSystem")
public class TlogSystemController extends BasicBaseApi<ITLogSystemService, TLogSystem> {
    @GetMapping("/query-page")
    @RequiresPermissions("transaction-log:t-log-system")
    public Result<Page<TLogSystemVo>> page(Page<TLogSystemVo> page, TLogSystemVo tlogSystemVo) {
        return success(service.pageByParam(page, tlogSystemVo));
    }
}

